import { fetchGet, fetchPost } from "../utils/http.js";

/**
 * 获取something
 */
export const fnGetBanner = () => {
    return fetchPost("Index/banner", {});
};

export const fnGetTab = () => {
    return fetchPost("Index/category", {});
};

export const fnGetNotice = () => {
    return fetchPost('Index/notice', {})
};

export const fnGetHot = (param) => {
    return fetchPost('Index/typeHot', param)
};

export const fnGetZK = (param) => {
    return fetchPost('Index/type2', param)
};
export const fnGetLYG = (param) => {
    return fetchPost('Goods/goods', param)
};

export const fnGetPhb = (param) => {
    return fetchPost('User/indexRank', param)
};

export const fnShowPhb = (param) => {
    return fetchPost('Index/order_is', param)
};

export const fnShowShang = () => {
    return fetchPost('Index/shangCheck', {})
};

export default {
    fnGetBanner,
    fnGetTab,
    fnGetNotice,
    fnGetHot,
    fnGetZK,
    fnGetPhb,
    fnShowPhb,
    fnGetLYG,
    fnShowShang
}